package com.gzq.learn.springbootdemo.domain.dao.mybatis;

import java.util.List;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import com.gzq.learn.springbootdemo.domain.UserDTO;

public interface UserMapper {

    @Select("select * from user")
    @Results({
            @Result(property = "userName", column = "user_name", javaType = String.class),
            @Result(property = "email", column = "email") })
    List<UserDTO> getAll();
}
